package com.example.mapper;
import com.example.pojo.GdDoctor;
import com.example.pojo.GdDoctorWithBLOBs;
import com.example.pojo.GdUserDoctorAttention;
import com.example.vo.DoctorDetailsReturnVo;
import com.example.vo.DoctorIntroduceReturnVo;

import java.util.List;
import java.util.Map;

public interface GdDoctorMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GdDoctorWithBLOBs record);

    int insertSelective(GdDoctorWithBLOBs record);

    GdDoctorWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GdDoctorWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(GdDoctorWithBLOBs record);

    int updateByPrimaryKey(GdDoctor record);

    /**
     * 获取医生详情
     * @param id
     * @return
     * @throws Exception
     */
    DoctorDetailsReturnVo selectDetailsById(Long id) throws Exception;
    /**
     * 获取医生介绍
     * @param id
     * @return
     * @throws Exception
     */
    DoctorIntroduceReturnVo selectDotorIntroduceById(Long id) throws Exception;

    /**
     * 查询推荐医生
     * @param map
     * @return
     * @throws Exception
     */
    List<GdDoctor> selectRecommendDoctor(Map map)throws Exception;;

}